<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>

<body>
<?php
require_once 'rootAppInc.php';
function mkhtml(){
$httpurlad = otherhtml2url(dirname(__FILE__),"indexmk.php");
$newname = otherhtml2url(dirname(__FILE__),"index.php");
	echo $httpurlad."<br>";
    //echo generation_otherhtml('',$httpurlad,$newname);
	
	 $outcom=Cmkdirs::advancedFwf(
	 './index.html',
	 file_get_contents($httpurlad )
	 ,__FILE__);
     echo $outcom ? 'success' : 'failed';
}
	
	if( file_exists("time.php")!=1){
		 _fwf ('time.php',time());
     mkhtml()  ;
}else{
	  $timeout=time()-file_get_contents("time.php") ;
	  if( $timeout >60*60 || $_GET['do']==='doo' ){
		mkhtml(); 
		 _fwf ('time.php',time());
		 echo '<br>'.$timeout;
	 }else{
		 
		 echo '不更新';
		 }
}

?>
</body>
</html>